<?php

use Faker\Generator as Faker;
use App\Model\Admin;
$factory->define(Admin::class, function (Faker $faker) {
    return [
        "username" => $faker->userName,
        "truename" => $faker->name(),
        "password" => bcrypt("123456"),
        "email"    => $faker->safeEmail,
        "phone"    => $faker->phoneNumber,
        "sex"      => ["先生","女士"][rand(0,1)],
        "last_ip"  => $faker->ipv4
    ];
});
